-- GENERATED SPELL FOR [Firebrand Invoker] --


function spell0_9262(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(12470,pUnit)
pUnit:RegisterEvent('Sorts_9262', 2000, 1)
end

function spell1_9262(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(15242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9262', 3000, 1)
end

function spell2_9262(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(12468,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9262', 11000, 1)
end

function spell3_9262(pUnit, Event) --@Mark of Flames,n/a--
pUnit:FullCastSpellOnTarget(15128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9262', 1000, 1)
end

function Sorts_9262(pUnit, Event)
local choix_sorts_9262 = math.random(0, 3)
if choix_sorts_9262 == 0 then
pUnit:RegisterEvent('spell0_9262', 1, 1)
end
if choix_sorts_9262 == 1 then
pUnit:RegisterEvent('spell1_9262', 1, 1)
end
if choix_sorts_9262 == 2 then
pUnit:RegisterEvent('spell2_9262', 1, 1)
end
if choix_sorts_9262 == 3 then
pUnit:RegisterEvent('spell3_9262', 1, 1)
end
end

function mob9262_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9262', math.random(1500, 3000), 1)
end

function mob9262_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9262_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9262_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9262, 1, 'mob9262_Action')
RegisterUnitEvent(9262, 2, 'mob9262_Leave')
RegisterUnitEvent(9262, 3, 'mob9262_Kill')
RegisterUnitEvent(9262, 4, 'mob9262_Die')
